package model.dtos;

import java.util.Date;

public class Player extends Person
{	
	String position;
	String idTeam;
	int rbis;
	int hrs;
	
	public Player()
	{
	}
	
	public Player(String identification, String name, String lastName,
				Date birthday, String position, String idTeam)
	{
		super(identification, name, lastName, birthday);
		
		this.idTeam = idTeam;
		this.position = position;
		this.rbis = 0;
		this.hrs = 0;
	}

	public Player(String identification, String name, String lastName,
			String idTeam, Date birthday, String position, int rbis, int hrs)
	{
		super(identification, name, lastName, birthday);
		this.idTeam = idTeam;
		this.position = position;
		this.rbis = rbis;
		this.hrs = hrs;
	}

	public String getPosition()
	{
		return position;
	}

	public void setPosition(String position)
	{
		this.position = position;
	}
	
	public String getIdTeam()
	{
		return idTeam;
	}

	public void setIdTeam(String idTeam)
	{
		this.idTeam = idTeam;
	}

	public int getRbis()
	{
		return rbis;
	}

	public void setRbis(int rbis)
	{
		this.rbis = rbis;
	}

	public int getHrs()
	{
		return hrs;
	}

	public void setHrs(int hrs)
	{
		this.hrs = hrs;
	}
	
	public void addRbis (int n)
	{
		this.rbis += n;
	}
	
	public void addHrs (int n)
	{
		this.hrs += n;
	}
}
